<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
     <meta name="keywords" content="{$_C['site_keyword']}">
	<meta name="description" content="{$_C['site_des']}">
	<link rel="stylesheet" type="text/css" href="{$_C.hy_path}css/login.css">
	<title>{$_C['site_name']}</title>
</head>
	<body>
		<div class="container login-bg">
			<div class="login-header">
				<img src="{$_C.hy_path}images/login-header.jpg"/>
			</div>
			<div class="login-body">
				<div class="login-logo login-fl">
					<img src="{$_C.hy_path}images/login-logo.jpg"/>
				</div>
			<div class="login-input login-fl">
				<p>{$_L.PLEASE_INPUT}：</p>
				<div>
					<div style="width: 10%;" class="login-fl">
						{$_L.CARD_ID}:
					</div>
					<div style="width: 90%;"  class="login-fl">
						<div class="login-input-bg">
							<input type="text" name="username" id="username" value="" />
						</div>
					</div>
				</div>
				<div style="clear: both;height: 20px;">
					
				</div>
				<div>
					<div style="width: 10%;" class="login-fl">
						{$_L.PWD}:
					</div>
					<div style="width: 90%;"  class="login-fl">
						<div class="login-input-bg">
							<input type="password" name="password" id="password" value="" />
						</div>
					</div>
				</div>
				<div class="login-ctrl">
						<a  href="javascript:;" class="login-btn"><span class="sr-only">{$_L.LOGIN}</span></a>
						
							<a href="/index.html" class="cancel-btn"><span class="sr-only">{$_L.BACK}|</span></a>
				</div>
			</div>
			</div>
		</div>
	</body>
    <script src="{$_C.hy_path}js/jquery-1.11.1.min.js"></script>
    <script>
	
	
	$('.login-btn').click(function(e){ 
      e.preventDefault();	
	  var username=$('#username').val();
    var pwd=$('#password').val();

		$.post('/index.php?g=home&m=user&a=act_login',{
			"{$input['pwd']}":pwd,
			"{$input['account']}":username
			},function(result)
	{ 
	if(result.error==0)
	{
		
		if(result.url)
		{
		window.location.href=result.url;
		}
		else
		{
			window.location.href='index.html';
		}
	}
	else{
		alert(result.content);
	}
		},'json');
		
		})
	
	
    </script>
</html>
